home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / safpak12.zip / SAFEPACK.DOC < prev    next >
Text File  |  1992-04-03  |  36KB  |  811 lines

  1.                                  S A F E P A C K
  2.                                  ===============
  3.  
  4.                            The SAFE Disk Defragmenter
  5.  
  6.  
  7.                                    User Manual
  8.  
  9.  
  10.                                     CONTENTS
  11.                                     ========
  12.  
  13.        Introduction  . . . . . . . . . . . . . . . . . . . . . . . .    2
  14.  
  15.        Why May Your Disk Need to be Defragmented?  . . . . . . . . .    2
  16.  
  17.        Why Safety is Important in a Defragmenter . . . . . . . . . .    3
  18.  
  19.        Requirements & Limitations  . . . . . . . . . . . . . . . . .    4
  20.  
  21.        Usage Procedure for SAFEPACK  . . . . . . . . . . . . . . . .    5
  22.             Swap Files . . . . . . . . . . . . . . . . . . . . . . .    6
  23.  
  24.        SAFEPACK Options  . . . . . . . . . . . . . . . . . . . . . .    6
  25.             Sorting Options  . . . . . . . . . . . . . . . . . . . .    7
  26.             Individual File vs Sub-directory Based Sorting . . . . .    8
  27.             Sorting Optimizations  . . . . . . . . . . . . . . . . .    8
  28.             Directory Sorting  . . . . . . . . . . . . . . . . . . .    9
  29.             Immobile Files . . . . . . . . . . . . . . . . . . . . .    9
  30.             Running from the Command Line Only . . . . . . . . . . .   11
  31.             Miscellaneous Options  . . . . . . . . . . . . . . . . .   11
  32.  
  33.        Registration & Support  . . . . . . . . . . . . . . . . . . .   12
  34.             Payment  . . . . . . . . . . . . . . . . . . . . . . . .   13
  35.  
  36.        Disclaimer - Agreement  . . . . . . . . . . . . . . . . . . .   14
  37.  
  38.                                _______
  39.                           ____|__     |                (R)
  40.                        --|       |    |-------------------
  41.                          |   ____|__  |  Association of
  42.                          |  |       |_|  Shareware
  43.                          |__|   o   |    Professionals
  44.                        -----|   |   |---------------------
  45.                             |___|___|    MEMBER
  46.  
  47.                                    D J Harvey
  48.  
  49.  
  50.               Copyright (C) 1992 D.J.Harvey.  All Rights Reserved.
  51.  
  52.  
  53.  
  54.                        --- SAFEPACK Manual --- Page 1 ---
  55.        Introduction
  56.        ============
  57.  
  58.        SAFEPACK reorganizes the files on a disk, moving them around as
  59.        necessary to ensure that each file occupies a single, contiguous
  60.        block of disk space, improving the effective performance of the
  61.        drive.  Apart from this improvement in speed, many users will
  62.        benefit from the collection together of all the free space on the
  63.        disk, allowing the creation of large, contiguous special files. 
  64.        An example of this is a Windows 3 permanent swap file, and the
  65.        Windows manual suggests that a disk defragmenter be run before
  66.        creating a permanent swap file.  No such program is supplied,
  67.        however, and SAFEPACK is designed to fill this gap.  For the user
  68.        who wishes to fine-tune the organization of the disk, a large
  69.        number of options are provided to control the final arrangement of
  70.        the files.
  71.  
  72.        As its name implies, SAFEPACK has been designed with data security
  73.        as the most important principle, and it manipulates the disk file
  74.        structures such that they are all valid at all times.  This means
  75.        that no loss of data should occur if the program is interrupted
  76.        while running, whether this be due to user break-in, machine
  77.        malfunction, or even power failure.
  78.  
  79.        SAFEPACK is distributed as 'Shareware', which means that though
  80.        you are free to evaluate and distribute the program, anyone
  81.        intending to make continued use of it must register with the
  82.        author, and pay the appropriate fee, which for a single user is
  83.        nine pounds Sterling.  Credit/charge cards are accepted, removing
  84.        the need for currency conversions.  Full registration details are
  85.        given below, and in the file REGISTER.DOC.
  86.  
  87.  
  88.        Why May Your Disk Need to be Defragmented?
  89.        ==========================================
  90.  
  91.        If you are fully conversant with the problem of disk
  92.        fragmentation, and know exactly why your disk needs to be
  93.        defragmented, you can skip this section, and go to the following
  94.        section on safety.
  95.  
  96.        In order to understand why a program such as this is required, it
  97.        is necessary to understand just a little about how DOS actually
  98.        stores files on a disk.  Although users generally refer to files
  99.        simply by their path & filename, DOS must allocate space for each
  100.        file on the disk, and be able to keep track of where each file is. 
  101.        Is does this by dividing the disk into a number of 'Allocation
  102.        Units' or 'Clusters', normally of 512, 1024, 2048 or 4096 bytes,
  103.        and when a file is written, DOS allocates as many unused clusters
  104.        as are necessary to accommodate it. Where possible, DOS uses
  105.        consecutive clusters, as this improves the speed of both reading
  106.        and writing, but this is not always possible, especially after a
  107.  
  108.                        --- SAFEPACK Manual --- Page 2 ---
  109.        disk has been in use for some time, as the unused clusters may be
  110.        scattered around the disk in locations previously occupied by
  111.        files which have since been deleted.
  112.  
  113.        An example may make this clearer:
  114.  
  115.        Suppose a very small disk with 18 clusters has 6 files, named F1-
  116.        F6 on it, and that they are located as in the following map:
  117.  
  118.        Cluster:  |1  2 |3  4  5 |6  7 |8  9 10 11 12|13 14|15 16|17 18
  119.        File:     | F1  |   F2   | F3  |      F4     | F5  | F6  | FREE
  120.  
  121.        If files F1, F3 & F5 are now deleted, the map becomes:
  122.  
  123.        Cluster:  |1  2 |3  4  5 |6  7 |8  9 10 11 12|13 14|15 16|17 18
  124.        File:     |FREE |   F2   |FREE |      F4     |FREE | F6  | FREE
  125.                                                      
  126.        There are now 8 free allocation units, and if a file requiring 7
  127.        units called F7 were to be written to this disk, it would have to
  128.        be put into the free space, which is spread over the disk, making 
  129.        the new map:
  130.  
  131.        Cluster:  |1  2 |3  4  5 |6  7 |8  9 10 11 12|13 14|15 16|17|18
  132.        File:     | F7  |   F2   | F7  |      F4     | F7  | F6  |F7|FREE
  133.  
  134.        File F7 is now said to be fragmented, making access to it
  135.        significantly slower than if it were in one contiguous section. 
  136.        Over time, similar fragmentation occurs to many of the files on a
  137.        disk, reducing the effective performance of the drive.  This
  138.        process happens slowly, however, so the gradual degradation in
  139.        drive performance is likely to go un-noticed for a long time. 
  140.        SAFEPACK reorganizes the files on the disk, amalgamating the
  141.        scattered parts of each file, restoring the disk to its original
  142.        speed.
  143.  
  144.  
  145.        Why Safety is Important in a Defragmenter
  146.        =========================================
  147.  
  148.        As described above, SAFEPACK moves most of your data from one part
  149.        of your disk to another, and this takes quite a long time
  150.        (typically 2-30 mins depending on machine, disk size etc).  During
  151.        such an interval there is clearly the possibility of a failure of
  152.        either the power supply or of the machine, and it is important to
  153.        consider what would happen to the valuable data on the disk if
  154.        this were to happen.  Some commercial defragmenters can wreck the
  155.        file structure of a disk if they are interrupted, but SAFEPACK has
  156.        been designed, as its name implies, to be tolerant of
  157.        interruptions, and should leave your disk in a fully usable
  158.        condition, even if switched off in the middle.  SAFEPACK achieves
  159.        this by ensuring that the file structures are valid at all times
  160.        during the run, and though this may slow the program down
  161.  
  162.                        --- SAFEPACK Manual --- Page 3 ---
  163.        slightly, what is an extra few minutes running time, compared with
  164.        havi